/* ==================== IMPORTANT DATES HEADER ==================== */
#header2 {
  background: linear-gradient(90deg, #2575fc, #6a11cb); /* gradient background */
  color: white;
  text-align: center;
  padding: 80px 20px;
  margin-top: 80px;
}

#header2 h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

#header2 p {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
  #header2 h1 {
    font-size: 2rem;
  }

  #header2 p {
    font-size: 1rem;
  }
}

/* Timeline */
/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #1555FD;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-event {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

.timeline-event.left {
  left: 0;
  text-align: right;
}

.timeline-event.right {
  left: 50%;
  text-align: left;
}

.timeline-event::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 25px;
  background-color: #fff;
  border: 4px solid #1555FD;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Dot position based on side */
.timeline-event.left::after {
  right: -10px;
}

.timeline-event.right::after {
  left: -10px;
}

.timeline-date {
  font-weight: bold;
  color: #1555FD;
  margin-bottom: 10px;
  font-size: 1rem;
}

.timeline-content {
  padding: 20px;
  background: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #666;
}

/* Hover Animation */
.timeline-content:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline-event {
    width: 100%;
    left: 0 !important;
    margin-bottom: 20px;
    text-align: left !important;
  }

  .timeline-event::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* Hover Animation */
.timeline-content:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ==================== TIMELINE RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
  /* Make all events full width and stacked */
  .timeline-event {
    position: relative;
    z-index: 2; /* above the line */
    width: 100% !important;
    left: 0 !important;
    margin: 0 auto 30px auto; /* spacing below each card */
    text-align: left !important;
    padding: 15px 10px;
  }

  /* Center the dot on the line and keep above the line */
  .timeline-event::after {
    left: 50% !important;
    right: auto !important;
    top: 0 !important; /* dot at the top of each card */
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-width: 3px;
    z-index: 3; /* above cards and line */
  }

  /* Push content below dot */
  .timeline-content {
    margin-top: 25px; /* distance from dot to card */
  }

  /* Center the date above the card */
  .timeline-date {
    position: absolute;
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    z-index: 4; /* always on top */
  }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .timeline-content {
    padding: 12px 10px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.85rem;
  }

  .timeline-event::after {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .timeline-date {
    font-size: 0.9rem;
  }
}




/* ==================== UPCOMING DEADLINES SECTION ==================== */
.upcoming-dates {
  background-image: linear-gradient(65deg, #56CCF2 0, #1555FD 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.upcoming-dates h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.upcoming-dates p {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.dates-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.date-card {
  background: white; /* card background */
  color: #333; /* text color inside card */
  border-radius: 10px;
  padding: 25px 30px;
  max-width: 300px;
  flex: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.date-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1555FD; /* heading color */
}

.date-card .date {
  font-weight: bold;
  margin-bottom: 10px;
  color: #1555FD; /* date color */
}

.date-card .countdown {
  font-size: 1rem;
  color: #ff4d4d; /* countdown color */
}

.btn-view-all {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 25px;
  border-radius: 30px;
  background: white;
  color: #1555FD;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-view-all:hover {
  background: #1555FD;
  color: white;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 768px) {
  .dates-cards {
    flex-direction: column;
    align-items: center;
  }

  .date-card {
    width: 90%;
  }
}
